# import time 
# from random import randint, random
# fps = 30
# result_list = []
# names = ['test','name','for','index']

# def conut(list: list):
#     cnt_list = [0,0,0,0]
#     for item in list:
#         cnt_list[names.index(item[0])] += 1
#     for name in names:
#         print(f'{name}:{cnt_list[names.index(name)]}')
#     return names[cnt_list.index(max(cnt_list))]
        

# while True:
#     target_list = [names[randint(0,3)], round(random(),3), time.time()]
#     result_list.append(target_list)
#     time.sleep(1.0 / fps / 2)

#     print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))

#     isolated_list = [i for i in result_list]   # 浅拷贝列表
#     for item in isolated_list:                      # 顺序遍历列表
#         # print(item)
#         if time.time() - item[-1] > 1.0:              # 从开头清理超时对象
#             result_list.remove(item)           # 清理超时对象
#     cls = conut(result_list)
#     print(f'max class is {cls}')
#     time.sleep(1.0 / fps / 2)
#     print("\033c", end="")

    

import argparse


if __name__ == '__main__':
    parser = argparse.ArgumentParser()
    parser.add_argument('--classes', nargs='+', type=int,    default='0 1 2 3', help='filter by class: --class 0, or --class 0 2 3')

    opt = parser.parse_args()
    print(opt)
    opt.classes
